package org.example.reemploymentsys.repository;

import org.example.reemploymentsys.entity.Organization;
import org.example.reemploymentsys.entity.PublishList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PublishListRe extends JpaRepository<PublishList, Long>, JpaSpecificationExecutor<PublishList> {
    @Query("select p from PublishList p where p.organization.id = ?1")
    List<PublishList> findPublishListByOrganizationId(String organizationId);
}
